FROM openjdk:8-jdk
LABEL maintainer=yuhao


#启动自行加载   服务名-prod.yml配置
#ENV PARAMS="--server.port=8080 --spring.profiles.active=prod"
RUN /bin/cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' >/etc/timezone


COPY  demo1-0.0.1-SNAPSHOT.jar /home/test/
#EXPOSE 8081

# hospital-manage
ENTRYPOINT ["/bin/sh","-c","java -jar /home/test/demo1-0.0.1-SNAPSHOT.jar"]